package com.gao;

import com.gao.mapper.EmpMapper;
import pojo.Emp;

import java.util.List;

public class EmpServiceImpl implements EmpService{
    private EmpMapper empMapper;
    public void setEmpMapper(EmpMapper empMapper){
        this.empMapper=empMapper;
    }
    @Override
    public void show() {
        System.out.println(empMapper);

        List<Emp> all = empMapper.findAll();
        for (Emp emp : all) {
            System.out.println(emp);
        }
    }
}
